package main

import (
	"flag"
	"fmt"
	"os"
)

func main() {
	args := os.Args

	for _, arg := range args {
		fmt.Println(arg)
	}

	var (
		userName string
		password string
		ip       string
		port     int
	)

	flag.StringVar(&userName, "u", "wc", "用户姓名，默认为 wc")
	flag.StringVar(&password, "p", "12345678", "用户密码，默认为 12345678")
	flag.StringVar(&ip, "i", "127.0.0.1", "ip地址，默认为 localhost")
	flag.IntVar(&port, "P", 8888, "，默认为 8888")

}
